<template>
  <div class="home">
    <!-- Hero Section -->
    <section class="hero">
      <div class="hero-content">
        <h1>ComfyUI 组件文档</h1>
        <p class="subtitle">让 AI 创作更简单</p>
        <div class="cta-buttons">
          <router-link to="/components" class="btn primary"
            >浏览组件</router-link
          >
          <router-link to="/docs" class="btn secondary">使用文档</router-link>
        </div>
      </div>
    </section>

    <!-- Features Section -->
    <section class="features">
      <div class="container">
        <div class="feature-grid">
          <div class="feature-card">
            <h3>专业文档</h3>
            <p>提供详尽的组件使用说明，帮助您快速掌握 ComfyUI</p>
          </div>
          <div class="feature-card">
            <h3>持续更新</h3>
            <p>及时跟进最新组件，确保文档始终与时俱进</p>
          </div>
          <div class="feature-card">
            <h3>简单易用</h3>
            <p>清晰的文档结构，让您轻松找到需要的内容</p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<style scoped>
.home {
  width: 100%;
  background: #111827;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #3450ff 0%, #00d0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.8rem;
  color: #9ca3af;
  margin-bottom: 48px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn {
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary {
  background: #3450ff;
  color: white;
}

.primary:hover {
  background: #2440db;
  transform: translateY(-2px);
}

.secondary {
  background: #1f2937;
  color: #f3f4f6;
  border: 1px solid #374151;
}

.secondary:hover {
  background: #374151;
  transform: translateY(-2px);
}

.features {
  padding: 100px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: 12px;
  background: #1f2937;
  border: 1px solid #374151;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: #3450ff;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #f3f4f6;
}

.feature-card p {
  color: #9ca3af;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 32px;
  }
}
</style>
